package com.yx.china.service;

import com.yx.china.project.entities.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping(value = "/storage/decrease")
    ResponseResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}